package com.team.mail.product.fallback;

import com.team.common.exception.BizCodeEnum;
import com.team.common.utils.R;
import com.team.mail.product.feign.SeckillFeignService;
import org.springframework.stereotype.Component;

/**
 * @Author zhangyurui
 * @PackageName mall(1)
 * @Package com.team.mail.product.fallback
 * @Date 2022/7/17 16:49
 * @Version 1.0.0
 */
@Component
public class SeckillFeignServiceFallBack implements SeckillFeignService {


    @Override
    public R getSkuSeckillInfo(Long skuId) {
        return R.error(BizCodeEnum.TO_MANY_REQUEST.getCode(),BizCodeEnum.TO_MANY_REQUEST.getMessage());
    }
}
